package com.jone.comic_api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 * 
 * @author Yanghu
 * @since 2017-06-13
 */
@TableName("comic_book")
public class ComicBook extends Model<ComicBook> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * id
     */
    @TableField("source_id")
    private Integer sourceId;
    /**
     * 名称
     */
    @TableField("comic_name")
    private String comicName;
    /**
     * 作者
     */
    @TableField("comic_auther")
    private String comicAuther;
    /**
     * 封面地址
     */
    @TableField("comic_cover")
    private String comicCover;
    /**
     * 连载状态
     */
    @TableField("comic_finish")
    private String comicFinish;
    /**
     * 最后更新时间
     */
    @TableField("last_upate_date")
    private Long lastUpateDate;
    private String introduction;
    /**
     * 最后更新章节
     */
    @TableField("last_update_chapter")
    private String lastUpdateChapter;
    @TableField("last_update_chapter_name")
    private String lastUpdateChapterName;
    /**
     * 来源
     */
    @TableField("source_type")
    private String sourceType;

    /**
     * 读取主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 读取id
     */
    public Integer getSourceId() {
        return sourceId;
    }

    /**
     * 设置id
     */
    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    /**
     * 读取名称
     */
    public String getComicName() {
        return comicName;
    }

    /**
     * 设置名称
     */
    public void setComicName(String comicName) {
        this.comicName = comicName;
    }

    /**
     * 读取作者
     */
    public String getComicAuther() {
        return comicAuther;
    }

    /**
     * 设置作者
     */
    public void setComicAuther(String comicAuther) {
        this.comicAuther = comicAuther;
    }

    /**
     * 读取封面地址
     */
    public String getComicCover() {
        return comicCover;
    }

    /**
     * 设置封面地址
     */
    public void setComicCover(String comicCover) {
        this.comicCover = comicCover;
    }

    /**
     * 读取连载状态
     */
    public String getComicFinish() {
        return comicFinish;
    }

    /**
     * 设置连载状态
     */
    public void setComicFinish(String comicFinish) {
        this.comicFinish = comicFinish;
    }

    /**
     * 读取最后更新时间
     */
    public Long getLastUpateDate() {
        return lastUpateDate;
    }

    /**
     * 设置最后更新时间
     */
    public void setLastUpateDate(Long lastUpateDate) {
        this.lastUpateDate = lastUpateDate;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 读取最后更新章节
     */
    public String getLastUpdateChapter() {
        return lastUpdateChapter;
    }

    /**
     * 设置最后更新章节
     */
    public void setLastUpdateChapter(String lastUpdateChapter) {
        this.lastUpdateChapter = lastUpdateChapter;
    }

    public String getLastUpdateChapterName() {
        return lastUpdateChapterName;
    }

    public void setLastUpdateChapterName(String lastUpdateChapterName) {
        this.lastUpdateChapterName = lastUpdateChapterName;
    }

    /**
     * 读取来源
     */
    public String getSourceType() {
        return sourceType;
    }

    /**
     * 设置来源
     */
    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
